package com.easylinkin.linkappapi.meterbilling.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.meterbilling.entity.RoomInfo;
import com.easylinkin.linkappapi.meterbilling.entity.ext.RoomList;
import com.easylinkin.linkappapi.meterbilling.entity.ext.WechatRoomList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * class info :
 *
 * @author liuqihang
 * @date 2021/7/13 17:44
 */
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {

    IPage<RoomList> getRoomPage(Page page, @Param("roomList") RoomList roomList);

    List<WechatRoomList> getRoomListByResident(@Param("phone") String phone);

    List<RoomList> getRoomdataByIds(@Param("roomList") RoomList roomList);
}
